package com.example.casper.Experiment2024.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import com.example.casper.Experiment2024.R;

public class TourMemory extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tourmemory);

        Button checkInButton = findViewById(R.id.button_check_in);
        Button mapButton = findViewById(R.id.button_map);
        Button lightCityButton = findViewById(R.id.button_light_city);
        Button backupButton = findViewById(R.id.button_backup);
        Button importButton = findViewById(R.id.button_import);
        Button exitButton = findViewById(R.id.button_exit);

        checkInButton.setOnClickListener(v -> {
            Intent intent = new Intent(TourMemory.this, AddClockInActivity.class);
            startActivity(intent);
            // 跳转到打卡页面
        });

        mapButton.setOnClickListener(v -> {
            Intent intent = new Intent(TourMemory.this,TencentMapActivity.class);
            startActivity(intent);
            // 跳转到地图页面
        });

        lightCityButton.setOnClickListener(v -> {
            Intent intent = new Intent(TourMemory.this, ManagePunchActivity.class);
            startActivity(intent);
            // 跳转到打卡管理页面
        });

        backupButton.setOnClickListener(v -> {
            // 跳转到备份页面
        });

        importButton.setOnClickListener(v -> {
            // 跳转到导入页面
        });

        exitButton.setOnClickListener(v -> {
            finish(); // 退出程序
        });
    }
}